<?php

class SocialGetMessageListAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT
    );

    /**
     *  获取社交消息
     * @param int $userId
     * @param int $reqTime
     * @return SzResponse
     */
    public function execute($userId, $reqTime)
    {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);

        return $this->buildResponse(SocialService::get()->getMessage($userId, $reqTime));
    }
}